package com.yunshan.wechat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunshan.common.annotation.Excel;
import com.yunshan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 小程序用户信息对象 wechat_user_info
 * 
 * @author yunshan
 * @date 2025-02-07
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WechatUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** openId */
    @Excel(name = "openId")
    private String openId;

    /** union_id */
    @Excel(name = "union_id")
    private String unionId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 微信名 */
    @Excel(name = "微信名")
    private String nickName;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 1.主卡 2.副卡 */
    @Excel(name = "1.主卡 2.副卡")
    private Integer type;

    /** 登录手机号 */
    @ApiModelProperty("登录手机号")
    @Excel(name = "登录手机号")
    private String loginPhone;

    /** 状态0:正常 */
    @Excel(name = "状态0:正常")
    private Long status;

    /** 是否删除0:未删除,1:删除 */
    @Excel(name = "是否删除0:未删除,1:删除")
    private Long isDeleted;

}
